#pragma once

#include "Includes.h"
#include "HL2Interface.h"
#include "Entity.h"
#include "Constants.h"
#include "RadarClass.h"

class ESP
{
public:
	bool Active;
	DWORD TeamCTColor;
	DWORD TeamTColor;
	DWORD TeamCTColorB;
	DWORD TeamTColorB;
	bool DrawHP;
	bool DrawName;
	bool DrawHead;
	bool DrawWeapon;
	bool DrawFar;
	bool DrawSkeleton;
	bool DrawEntities;
private:
	void DrawLine(SD_Tools::Vector2& a, SD_Tools::Vector2& b, DWORD Color);
	void DrawFullSkeleton(Entity* Ent, DWORD Color);
public:
	void Init();
	void Enable();
	void Disable();
	void Set(bool Active);
	void SetDrawHp(bool Active);
	void SetDrawName(bool Active);
	void SetDrawHead(bool Active);
	void SetCTColor(DWORD Color);
	void SetTColor(DWORD Color);
	void SetFarEsp(bool Active);
	void Draw();
};

extern ESP g_pESP;